<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .nav a {
            background-color: #f00;
            width: 120px;
            height: 58px;
            display: inline-block;
            line-height: px;
            text-align: center;
            color: #fff;
            text-decoration: none;
        }

        .nav .bg1 {
            background-color: pink;
        }

        .nav a:hover {
            background-color: green;
        }
    </style>
</head>

<body>
    <div class="nav">
        <a href="" class="bg1">五彩导航</a>&nbsp;<a href="">五彩导航</a>&nbsp;<a href="">五彩导航</a>&nbsp;<a href="">五彩导航</a>
    </div>
</body>

</html>